You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > MatrixInt Structure > MatrixInt Methods > ThresholdGT_LT Method > MatrixInt.ThresholdGT_LT Method ([In] int, [In] int, [In] int, [In] int)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
MatrixInt.ThresholdGT_LT Method ([In] int, [In] int, [In] int, [In] int)

Threshold greater than and less than operation.

Syntax
C#
Visual Basic
public TMtxVecInt ThresholdGT_LT([In] int GTLevel, [In] int GTValue, [In] int LTLevel, [In] int LTValue);

Perform operation on all calling object values. The LTValue parameter is an lower bound for threshold operation. The GTValue parameter is an upper bound for threshold operation. All values less than LTLevel will be replaced with LTValue. All values bigger than GTLevel will be replaced with GTValue.

using Dew.Math; using Dew.Math.Units; namespace Dew.Examples() { void Example() { TMtxInt a; MtxVecInt.CreateIt(out a); try { a.SetIt(2,2, new int[] {20,1,30,40}); a.ThresholdGT_LT(23,34,10,5); // a = [20,5,34,34] } finally { MtxVecInt.FreeIt(ref a); } } }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!